package com.lh.feign.controller;

import com.lh.feign.feign.FeignTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lh
 * @Description:
 * @date 2021/3/30 10:16
 */
@RestController
@RequestMapping("/feign")
public class FeignController {
	@Autowired
	private FeignTestService feignTestService;

	@GetMapping("/reqByFeign")
	public String reqByRibbon(@RequestParam String name) {
		return feignTestService.ribbonTest(name);
	}
}
